<?php
App::uses('LilAppModel', 'Lil.Model');
class LilAttachment extends LilAppModel {

	var $name = 'LilAttachment';

	public $uploadDefaults = array(
		'allowedMime'       => '*',
		'allowedExt'        => '*',
		'dirFormat'         => '{$model}',
		'fileFormat'        => '{HASH}',
		'titleField'        => 'original',
		'titleFormat'       => '{$full_name}',
		'sizeField'         => 'filesize',
		
		'overwriteExisting' => false,
		'mustUploadFile'    => false,
	);
	
	var $useTable = 'attachments';
}